<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../ObtenerDocumentosDA.wsdl"/>
      <rootElement name="ViSicpersreladocuCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/ObtenerDocumentosDA"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swObtenerDocumentosPersona.wsdl"/>
      <rootElement name="OBTENERDOCUMENTOSPERSONAMR" namespace="http://mincetur.gob.pe/SIC/documento/obtenerDocumentosPersona"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [FRI MAY 17 17:49:33 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:inp1="http://mincetur.gob.pe/SIC/documento/obtenerDocumentosPersona"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/SOA/swObtenerDocumentosPersona/ObtenerDocumentosDA"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns1="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/ObtenerDocumentosDA"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ns0="http://mincetur.gob.pe/SIC/documento/swObtenerDocumentosPersona"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl tns plt wsdl top xsd inp1 ns1 ns0 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <inp1:OBTENERDOCUMENTOSPERSONAMR>
      <inp1:DOCUMENTOS>
        <xsl:for-each select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu">
          <inp1:DOCUMENTO>
            <xsl:attribute name="COD_SCLASEVEN">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:codSclaseeven"/>
            </xsl:attribute>
            <xsl:attribute name="DES_SCLASEEVEN">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:desSclaseeven"/>
            </xsl:attribute>
            <xsl:attribute name="ID_SCLASEEVEN">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:idSclaseeven"/>
            </xsl:attribute>
            <xsl:attribute name="COD_EXPE">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:codExpe"/>
            </xsl:attribute>
            <xsl:attribute name="ID_EVEN">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:idEven"/>
            </xsl:attribute>
            <xsl:attribute name="FEC_VENC">
              <xsl:value-of select="top:fecFenc"/>
            </xsl:attribute>
            <xsl:attribute name="DES_FEC_CREACION">
              <xsl:value-of select="top:fecCreacionDocu"/>
            </xsl:attribute>
            <xsl:attribute name="DES_TITULO">
              <xsl:value-of select="top:desTituloDocu"/>
            </xsl:attribute>
            <xsl:attribute name="ID_DOCU">
              <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:idDocu"/>
            </xsl:attribute>
            <xsl:attribute name="DES_STIPODOCU">
              <xsl:value-of select="top:desStipodocu"/>
            </xsl:attribute>
            <xsl:attribute name="DES_PERSCREADOR">
              <xsl:value-of select="top:desPersCreadorDocu"/>
            </xsl:attribute>
            <xsl:attribute name="DES_DOCUMENTO">
              <xsl:value-of select="top:desDocuDocu"/>
            </xsl:attribute>
            <xsl:attribute name="COD_IDEN">
              <xsl:value-of select="top:codIden"/>
            </xsl:attribute>
            <xsl:attribute name="ID_STIPODOCU">
              <xsl:value-of select="top:idStipodocu"/>
            </xsl:attribute>
            <xsl:attribute name="DES_NOTAS">
              <xsl:value-of select="top:desNotas"/>
            </xsl:attribute>
            <xsl:attribute name="COD_STIPODOCU">
              <xsl:value-of select="top:codStipodocu"/>
            </xsl:attribute>
            <xsl:attribute name="ID_TIPODOCU">
              <xsl:value-of select="top:idTipodocu"/>
            </xsl:attribute>
            <xsl:attribute name="COD_TIPODOCU">
              <xsl:value-of select="top:codTipodocu"/>
            </xsl:attribute>
            <ns1:DOCUMENTOBINARIO>
              <xsl:attribute name="COD_DOCUBINA">
                <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:codDocubina"/>
              </xsl:attribute>
              <xsl:attribute name="DES_LOCAURI">
                <xsl:value-of select="top:desLocauri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_NOMBREAL">
                <xsl:value-of select="top:desNombreal"/>
              </xsl:attribute>
              <xsl:attribute name="DES_LOCACACHE">
                <xsl:value-of select="top:desLocacache"/>
              </xsl:attribute>
              <xsl:attribute name="DES_FEC_CREACION">
                <xsl:value-of select="top:fecCreacion"/>
              </xsl:attribute>
              <xsl:attribute name="FEC_DESDE">
                <xsl:value-of select="/top:ViSicpersreladocuCollection/top:ViSicpersreladocu/top:fecDesde"/>
              </xsl:attribute>
              <xsl:attribute name="FEC_HASTA">
                <xsl:value-of select="top:fecHasta"/>
              </xsl:attribute>
              <xsl:attribute name="ID_EXTEDOCU">
                <xsl:value-of select="top:idExtedocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_LENGDOCU">
                <xsl:value-of select="top:idLengdocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_TRELADOCU">
                <xsl:value-of select="top:idTreladocu"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_BYTES">
                <xsl:value-of select="top:numBytes"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_FOLIOS">
                <xsl:value-of select="top:numFolios"/>
              </xsl:attribute>
            </ns1:DOCUMENTOBINARIO>
          </inp1:DOCUMENTO>
        </xsl:for-each>
      </inp1:DOCUMENTOS>
    </inp1:OBTENERDOCUMENTOSPERSONAMR>
  </xsl:template>
</xsl:stylesheet>
